package decorator
{
	import flash.display.Sprite;
	
	public class Reader extends Sprite
	{
		public function Reader()
		{
			var reader:IReader = new StringReader("one two three four");
			while(reader.hasNext()){
				trace(reader.read())
			}
			reader = new WordReader(reader);
			while(reader.hasNext()){
				trace(reader.read())
			}
		}
	}
}